<?php

namespace Part15_AbstractFactoryPattern\Code4;

class MysqlDepartment implements IDepartment
{
    public function insert($user)
    {
        echo '模拟在mysql中给department表增加一条记录' . "\n";
    }

    public function getDepartment($id)
    {
        echo '模拟在mysql中根据id查询department一条记录' . "\n";
    }
}